const mongoose = require('mongoose');
var Register = require('../models/register.model');

exports.create = function(req, res, next) {
    const register = new Register(req.body);
    register.save().then((data) => res.json(data));
}
exports.find = function(req, res, next) {
    Register.find(req.body).then((data) => res.json(data));
}

